 
                <style type="text/css">
                    html,body{
                height: 100%;
            }
                body{
                    background: url("/static/images/login-bg.jpg") no-repeat 0px 0px;
                    background-size:cover;                      
                }
                .dc_login{              
                    margin-top:200px;
                    color:#fff;
                }
                </style>
        <div class="layui-fluid ">
            <div class="layui-row ">
                <div class=" layui-col-md4 layui-col-md-offset4 dc_login ">
                    <h1 align="center" style="height: 50px;">
                        管理系统
                    </h1>
                    <form action="/admin/login/checkLogin" class="layui-form">
                        <div class="layui-form-item">
                            <label class="layui-form-label ">
                                <i class="layui-icon layui-icon-username ">
                                </i>
                            </label>
                            <div class="layui-input-block">
                                <input autocomplete="off" class="layui-input" field="请输入账号" lay-verify="required" lay-vertype="tips" name="username" placeholder="请输入账号" required="required" type="text">
                                </input>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">
                                <i class="layui-icon layui-icon-password ">
                                </i>
                            </label>
                            <div class="layui-input-block">
                                <input autocomplete="off" class="layui-input" lay-verify="required" lay-vertype="tips" name="password" placeholder="请输入密码" required="" type="password">
                                </input>
                            </div>
                            <div class="layui-form-mid layui-word-aux">
                            </div>
                        </div>
                        <div class="layui-form-item" style="text-align:center;">
                            <div class="layui-input-block center">
                                <button class="layui-btn" lay-filter="formDemo" lay-submit="">
                                    登陆
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <script>
            var _url = "/admin/index/index";
            //Demo
layui.use('form', function(){
  var form = layui.form;
  
  //监听提交
  form.on('submit(formDemo)', function(data){
     layui.$.post(data.form.action, data.field, function(res, textStatus, xhr) { 
            
            if(res.status==1){                
                    top.location.href=_url;               
            }else{
                layui.layer.msg(res.msg);
            }            
            return res;
     },'JSON');
  
   
    return false;
  });
});
        </script>
   